﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GetQuote.Web
{
    public partial class CalculatorDrapery : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void DraperyDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            var listPrice = new[] { 
                new {
                    Id=1, 
                    Total=40.65,
                    RoomLocation="Bed",
                    Quantity=1,
                    PairOrPanel="Pair",
                    BRToBR=44,
                    Return=4,
                    Overlap=3,
                    FinishedWidth=28,
                    FabricWidth=54,
                    Fullness=2.5,
                    NoOfWidthPerPanel=1.296,
                    FinishedLength=100,
                    RepeatPattern=17,
                    NumOfRepeat=7,
                    CutLength=119,
                    FabricYardage=8.137,
                    LiningYardage=8.137,
                    FabricPrice=55,
                    LiningPrice=5,
                    TotalFabric=447.58,
                    TotalLining=447.58,
                    PricePerWidth=6,
                    TotalLaborCost=15.56,
                    Hardware=string.Empty,
                    TieBack=string.Empty,
                    Accessories=string.Empty
                },
                new {
                    Id=2, 
                    Total=40.65,
                    RoomLocation="Bed",
                    Quantity=1,
                    PairOrPanel="Pair",
                    BRToBR=44,
                    Return=4,
                    Overlap=3,
                    FinishedWidth=28,
                    FabricWidth=54,
                    Fullness=2.5,
                    NoOfWidthPerPanel=1.296,
                    FinishedLength=100,
                    RepeatPattern=17,
                    NumOfRepeat=7,
                    CutLength=119,
                    FabricYardage=8.137,
                    LiningYardage=8.137,
                    FabricPrice=55,
                    LiningPrice=5,
                    TotalFabric=447.58,
                    TotalLining=447.58,
                    PricePerWidth=6,
                    TotalLaborCost=15.56,
                    Hardware=string.Empty,
                    TieBack=string.Empty,
                    Accessories=string.Empty
                }
            };
            e.Result = listPrice;
        }
    }
}